package com.daifeng.gulimall.product.feign;

import com.daifeng.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-ware")
public interface WareSkuFeign {
    /**
     * 查询某商品是否还有库存
     */
    @RequestMapping("/ware/waresku/hasStock/{skuId}")
    public R hasStock(@PathVariable("skuId") Long skuId);

}
